#pragma once

// PropertyCtrl

namespace serika
{
	namespace dq
	{
		class Property;
		class EditItemPanel;

		class PropertyCtrl : public CWnd
		{
			DECLARE_DYNAMIC(PropertyCtrl)

		public:
			PropertyCtrl(EditItemPanel* panel, Property* p);
			virtual ~PropertyCtrl();

			BOOL Create(int height, CWnd* parent);

			Property* GetProperty() const { return mProperty; }

		protected:
			DECLARE_MESSAGE_MAP()
			afx_msg void OnButtonClick();

		private:
			EditItemPanel* mPanel;
			Property* mProperty;

			CFont mFont;
			CStatic mStatic;
			CButton mButton;
		};
	}
}



